package top.roadvast.pdshopping.config;

import org.springframework.amqp.core.*;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author 郭泽鹏
 * @Date 2021/12/29 9:17
 * @Version 1.0
 * @Description rabbitmq配置类：用于测试直连模式
 * 获取某个特定日志级别的日志，queue和bindingKey在消费方指定
 */
@Configuration
public class DirectLogConfig {
    //生成交换机
    @Bean
    public DirectExchange getLogExchange() {
        return new DirectExchange("pd_log_direct_exchange", true, false);
    }
}
